package com.gjintel.business.proj.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.GenericGenerator;

/**
 * @description 投标响应表
 * @author ruix
 * @date 2016-8-23 下午04:33:03
 */
@Entity
@Table(name = "t_proj_bid_info")
public class ProjectBidInfo {

	private String id;
	private String userId;// 投标人id
	private String bidderName;// 投标人单位名称
	private String projectId;// 项目id
	private Double bidAmount;// 投标总价
	private Date bidTime;// 投标日期
	private String baseAttachPath;// 基本上传目录
	private String mainPath;// 投标人情况目录
	private String auziPath;// 授权书及缴纳社保证明附件目录
	private String threePath;// 三证合一附件目录
	private String copmatPath;// 竞争性谈判附件目录
	private String performancePath;// 项目业绩合同书目录
	private String localServerPath;// 本地化服务附件目录
	private String bidPath;// 投标报价书附件目录
	private String responsePath;// 响应表目录
	private String recordPath;// 无重大违法记录目录
	private String basePath;// 银行基本账户附件目录
	private String otherpath;// 其他文件目录
	private String comment;// 备注
	private Integer evalutionResult = 0;// 1.合格，2.不合格,0: 未评标,3: 不需评审
	private String evalutionDesc;// 评标说明
	private Date evalutionTime;// 专家评定时间
	private String questionPath;// 询标函
	private Date bankBackTime;// 银行退回保证金
	private Date depositPostTime;// 提交保证金时间
	private String responseFile;// 追加其他响应文件
	private Integer flag = 0;// 标识： 0：未提交，1：提交
	private String userIdCard;// 投标人身份证号
	private String consignor;// 委托人
	private String consignorIdCard;// 委托人身份证号
	private String consignorPhone;// 委托人手机号
	private String userMobile; // 投标人号码
	private String userName;// 投标人名称
	private String company;// 投标单位名(投标人登录名)
	private Integer depositStatus = 0;// 保证金状态 0.未退还 1.退还2.扣除
	private String projectName;

	private Integer isNoBid;// 是否禁投 1: 禁投 0： 没有禁投
	private String newWebContentId;//最新的曝光内容的id 
	private Double discountAmount=0D;// 小微企业扣除价格
	private Integer millisecond;//报价时间毫秒数
	
	private Boolean isMultHit=false;//是否多家中标之一 false:否，true是
	private String societyCode;//社会信用代码
	
	
	public ProjectBidInfo() {
		super();
	}

	public ProjectBidInfo(String id, String userId, String bidderName, String projectId, Date bidTime,
			String userIdCard, String consignorIdCard, String userMobile, String consignorPhone, String userName,
			String consignor, String company) {
		super();
		this.id = id;
		this.userId = userId;
		this.bidderName = bidderName;
		this.projectId = projectId;
		this.bidTime = bidTime;
		this.userIdCard = userIdCard;
		this.consignorIdCard = consignorIdCard;
		this.userMobile = userMobile;
		this.consignorPhone = consignorPhone;
		this.userName = userName;
		this.consignor = consignor;
		this.company = company;
	}

	public ProjectBidInfo(String userId, String bidderName, String projectId, String projectName) {
		super();
		this.userId = userId;
		this.bidderName = bidderName;
		this.projectId = projectId;
		this.projectName = projectName;
	}

	@Id
	@GeneratedValue(generator = "UIDGenerator")
	@GenericGenerator(name = "UIDGenerator", strategy = "org.hibernate.id.UUIDHexGenerator")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "proj_id")
	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	@Column(name = "bid_amount")
	public Double getBidAmount() {
		return bidAmount;
	}

	public void setBidAmount(Double bidAmount) {
		this.bidAmount = bidAmount;
	}

	@Column(name = "bid_time")
	public Date getBidTime() {
		return bidTime;
	}

	public void setBidTime(Date bidTime) {
		this.bidTime = bidTime;
	}

	@Column(name = "base_attach_path")
	public String getBaseAttachPath() {
		return baseAttachPath;
	}

	public void setBaseAttachPath(String baseAttachPath) {
		this.baseAttachPath = baseAttachPath;
	}

	@Column(name = "main_path")
	public String getMainPath() {
		return mainPath;
	}

	public void setMainPath(String mainPath) {
		this.mainPath = mainPath;
	}

	@Column(name = "auzi_path")
	public String getAuziPath() {
		return auziPath;
	}

	public void setAuziPath(String auziPath) {
		this.auziPath = auziPath;
	}

	@Column(name = "three_path")
	public String getThreePath() {
		return threePath;
	}

	public void setThreePath(String threePath) {
		this.threePath = threePath;
	}

	@Column(name = "copmat_path")
	public String getCopmatPath() {
		return copmatPath;
	}

	public void setCopmatPath(String copmatPath) {
		this.copmatPath = copmatPath;
	}

	@Column(name = "performance_path")
	public String getPerformancePath() {
		return performancePath;
	}

	public void setPerformancePath(String performancePath) {
		this.performancePath = performancePath;
	}

	@Column(name = "local_server_path")
	public String getLocalServerPath() {
		return localServerPath;
	}

	public void setLocalServerPath(String localServerPath) {
		this.localServerPath = localServerPath;
	}

	@Column(name = "bid_path")
	public String getBidPath() {
		return bidPath;
	}

	public void setBidPath(String bidPath) {
		this.bidPath = bidPath;
	}

	@Column(name = "response_path")
	public String getResponsePath() {
		return responsePath;
	}

	public void setResponsePath(String responsePath) {
		this.responsePath = responsePath;
	}

	@Column(name = "record_path")
	public String getRecordPath() {
		return recordPath;
	}

	public void setRecordPath(String recordPath) {
		this.recordPath = recordPath;
	}

	@Column(name = "base_path")
	public String getBasePath() {
		return basePath;
	}

	public void setBasePath(String basePath) {
		this.basePath = basePath;
	}

	@Column(name = "other_path")
	public String getOtherpath() {
		return otherpath;
	}

	public void setOtherpath(String otherpath) {
		this.otherpath = otherpath;
	}

	@Column(name = "comment")
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@Column(name = "evalution_result")
	public Integer getEvalutionResult() {
		return evalutionResult;
	}

	public void setEvalutionResult(Integer evalutionResult) {
		this.evalutionResult = evalutionResult;
	}

	@Column(name = "evalution_desc")
	public String getEvalutionDesc() {
		return evalutionDesc;
	}

	public void setEvalutionDesc(String evalutionDesc) {
		this.evalutionDesc = evalutionDesc;
	}

	@Column(name = "evalution_time")
	public Date getEvalutionTime() {
		return evalutionTime;
	}

	public void setEvalutionTime(Date evalutionTime) {
		this.evalutionTime = evalutionTime;
	}

	@Column(name = "question_path")
	public String getQuestionPath() {
		return questionPath;
	}

	public void setQuestionPath(String questionPath) {
		this.questionPath = questionPath;
	}

	public void setBankBackTime(Date bankBackTime) {
		this.bankBackTime = bankBackTime;
	}

	@Column(name = "bank_back_time")
	public Date getBankBackTime() {
		return bankBackTime;
	}

	public void setDepositPostTime(Date depositPostTime) {
		this.depositPostTime = depositPostTime;
	}

	@Column(name = "deposit_post_time")
	public Date getDepositPostTime() {
		return depositPostTime;
	}

	public void setBidderName(String bidderName) {
		this.bidderName = bidderName;
	}

	@Column(name = "bidder_name")
	public String getBidderName() {
		return bidderName;
	}

	public void setResponseFile(String responseFile) {
		this.responseFile = responseFile;
	}

	@Column(name = "response_file")
	public String getResponseFile() {
		return responseFile;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	@Column(name = "flag")
	public Integer getFlag() {
		return flag;
	}

	@Transient
	public String getUserIdCard() {
		return userIdCard;
	}

	public void setUserIdCard(String userIdCard) {
		this.userIdCard = userIdCard;
	}

	@Transient
	public String getUserMobile() {
		return userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	@Transient
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Transient
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name = "consignor")
	public String getConsignor() {
		return consignor;
	}

	public void setConsignor(String consignor) {
		this.consignor = consignor;
	}

	@Column(name = "consignor_idcard")
	public String getConsignorIdCard() {
		return consignorIdCard;
	}

	public void setConsignorIdCard(String consignorIdCard) {
		this.consignorIdCard = consignorIdCard;
	}

	@Column(name = "consignor_phone")
	public String getConsignorPhone() {
		return consignorPhone;
	}

	public void setConsignorPhone(String consignorPhone) {
		this.consignorPhone = consignorPhone;
	}

	@Column(name = "deposit_status")
	public Integer getDepositStatus() {
		return depositStatus;
	}

	public void setDepositStatus(Integer depositStatus) {
		this.depositStatus = depositStatus;
	}

	@Transient
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	@Transient
	public Integer getIsNoBid() {
		return isNoBid;
	}

	public void setIsNoBid(Integer isNoBid) {
		this.isNoBid = isNoBid;
	}

	@Transient
	public String getNewWebContentId() {
		return newWebContentId;
	}

	public void setNewWebContentId(String newWebContentId) {
		this.newWebContentId = newWebContentId;
	}
	
	@Column(name = "discount_amount")
	public Double getDiscountAmount() {
		return discountAmount;
	}

	public void setDiscountAmount(Double discountAmount) {
		this.discountAmount = discountAmount;
	}

	@Column(name = "millisecond")
	public Integer getMillisecond() {
		return millisecond;
	}

	public void setMillisecond(Integer millisecond) {
		this.millisecond = millisecond;
	}

	@Column(name="is_mult_hit")
	public Boolean getIsMultHit() {
		return isMultHit;
	}

	public void setIsMultHit(Boolean isMultHit) {
		this.isMultHit = isMultHit;
	}
     @Transient
	public String getSocietyCode() {
		return societyCode;
	}

	public void setSocietyCode(String societyCode) {
		this.societyCode = societyCode;
	}
	
	

}
